package net.atos.spring.animals;

import javax.persistence.Entity;

@Entity
public class Mammal extends Animal {

    private Double temperature;

    public static Mammal withNameAndTemperature(String name, Double temperature) {
	return new Mammal(name, temperature);
    }

    private Mammal() {
	super();
    }

    private Mammal(String name, Double temperature) {
	super(name);
	this.temperature = temperature;
    }

    public Double getTemperature() {
	return temperature;
    }

    public void setTemperature(Double temperature) {
	this.temperature = temperature;
    }

}
